package com.mhh.selary.backend.dto.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mhh.sdk.beans.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.List;

/**
 * @author mhh
 * @date 2020-11-24 13:54:04
 */
@Getter
@Setter
@ApiModel("账号信息")
public class UserInfoDTO extends BaseDTO {

    @ApiModelProperty(value = "账号id")
    private Long id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "初始化密码")
    private String initPwd;

    @ApiModelProperty(value = "角色(1:管理员 2:测试人员)")
    private Integer role;

    @ApiModelProperty(value = "角色描述")
    private String roleDesc;

    @ApiModelProperty(value = "账号状态(0:初始化 1:启用 2:禁用)")
    private Integer status;

    @ApiModelProperty(value = "账号状态描述")
    private String statusDesc;

    @ApiModelProperty(value = "创建日期(yyyy-MM-dd HH:mm:ss)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "勾选的项目")
    private List<Long> projectIds;

    @ApiModelProperty(value = "勾选的项目")
    private List<String> projectNames;
}
